Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@kamalu633-blip
kamalu633-blip / gist:2b4341083c84e1f78d66fe0ad847bd75
Created May 6, 2026 19:42
PRIVACY POLICY FOR LIFE THE UK TEST MULTILINGUAL
### **Privacy Policy for [Life in the UK multilingual]**
**1. Overview**
This app is designed to help users prepare for the Life in the UK test. While the core study content is available offline, the app uses limited online services for monetization and ad-free upgrades.
**2. Data Collection & Usage**
* **Personal Information:** We do **not** collect any personal information such as names, email addresses, or phone numbers.
* **Financial Information:** All financial transactions (the $2.50 ad-free upgrade) are handled securely by **Apple App Store In-App Purchases**. We do not have access to your credit card or banking details.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SheCodes</title>
<style>
body {
font-family: Cerebri Sans, Helvetica, Arial, sans-serif;
}
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 6, 2026 19:39
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)